package com.zlzxm.shoesmarket.view.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.zlzxm.shoesmarket.R;
import com.zlzxm.shoesmarket.view.adapter.entity.EntityGoodsInfo;

import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import java.util.List;

/**
 * Created by zlz
 * on  4/10/21
 */
public class AdGoodsInfo extends BaseQuickAdapter<EntityGoodsInfo, BaseViewHolder> {

    public AdGoodsInfo( @Nullable List<EntityGoodsInfo> data) {
        super(R.layout.item_goods_info, data);
    }

    @Override
    protected void convert(@NotNull BaseViewHolder holder, EntityGoodsInfo entityGoodsInfo) {
        holder.setText(R.id.tvTitle,entityGoodsInfo.getTitle());
        holder.setText(R.id.tvValue,entityGoodsInfo.getValue());

    }
}
